package rpg.state
{
	import rpg.Utils.Val;
	import rpg.role.Hero;

	public class Stand extends StateBase
	{
		public function Stand(hero : Hero , stateMachine : StateComponent)
		{
			super(hero , stateMachine);
			stateID = Val.STAND;
		}

		override public function update(delay : uint) : void
		{
			if(role.state != Val.STAND)
				role.state = Val.STAND;
		}

		override public function changeState(id : int) : void
		{
			stateComponent.changeState(id);
		}

		override public function clear() : void
		{

		}

	}
}